import { instance } from "@/tools/request";

export const getDetail = (id) => {
  return instance.get('/goods',{
    params: {
      id
    }
  })
}

export const fetchHotGoodsAPI = ({ id, type, limit = 3 }) => {
  return instance.get('/goods/hot',{
    params:{
      id,
      type,
      limit
    }
  })
}
